package anims.XXgt.anim;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JPanel;

/** The custom drawing panel for the bouncing ball (inner class). */
class DrawCanvas extends JPanel {
	
	public DrawCanvas(){
		
	}
	/** Custom drawing codes */
	@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g); // Paint background
		// Display ball's information
		g.setColor(Color.WHITE);
		g.setFont(new Font("Courier New", Font.PLAIN, 12));
//		g.drawString("Ball " + ball1.toStringStatus(), 20, 30);
	}
	private void drawAllComponents(){
		
	}
	/** Called back to get the preferred size of the component. */
	@Override
	public Dimension getPreferredSize() {
//		return (new Dimension(canvasWidth, canvasHeight));
		return null;
	}
}
